<?php

use backend\widgets\Bar;
use backend\grid\CheckboxColumn;
use backend\grid\ActionColumn;
use backend\grid\GridView;
use yii\widgets\Pjax;

/* @var $this yii\web\View */
/* @var $searchModel backend\models\search\JobSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title                   = 'Jobs';
$this->params['breadcrumbs'][] = yii::t('app', 'Job');
?>
<div class="row">
    <div class="col-sm-12">
        <div class="ibox">
            <?= $this->render('/widgets/_ibox-title') ?>
            <div class="ibox-content">
                <?= Bar::widget([
                    'template'  => '{refresh} {delete}',
                    'item_type' => $type,
                ]) ?>
                <?= $this->render('_search', ['model' => $searchModel]); ?>
                <?php Pjax::begin(); ?>            <?= GridView::widget([
                    'dataProvider' => $dataProvider,
                    'filterModel'  => $searchModel,
                    'columns'      => [
                        ['class' => CheckboxColumn::className()],

                        'id',
                        'uid',
                        'type',
                        'status',
                        'forbidden',
                        // 'pay_needed',
                        // 'title',
                        // 'created_at',
                        // 'updated_at',
                        // 'content:ntext',
                        // 'contact_name',
                        // 'contact_phone',

                        ['class' => ActionColumn::className(),],
                    ],
                ]); ?>
                <?php Pjax::end(); ?>
            </div>
        </div>
    </div>
</div>
